<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>百科</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="wikilication/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="main">
    
    	
        
        
        <div class="wiki">
             	
              {get sql="SELECT * FROM `table_wiki` WHERE  status=99 ORDER BY wikiid DESC" rows="20" page="$page"} 
              
                
                        <div class="wiki-item">
                        	
                            <div class="wiki-aside">
                                <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}" rel="tooltip" data-placement="right"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48" class="thumbnail"/></a>
                            </div>
                            <div class="wiki-main">
                                <div class="arrow"></div>
                                <div class="wiki-inner">
                                	<div class="wiki-title">@<a target="_blank" href="{url("?module=space&userid=$r[userid]")}">{username($r[userid])}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></div>
                                	<div class="wiki-desc">{str_cut(strip_tags($r[content]), 300)} <small>{date('Y-m-d',$r[updatetime])}</small></div>
                                    {php $keywords = explode(',',$r[keywords]);}
                                    {if $keywords}
                                    <p>tag:
                                        {loop $keywords $k $v}
                                        <a href="{url("?module=wiki&action=tag&name=$v")}">{$v}</a>
                                        {/loop}
                                    </p>
                                    {/if}
                                    
                                    <div class="wiki-tool">
                                    	<i class="icon-eye-open"></i>{$r[hits]}次浏览&nbsp;
                                    	<i class="icon-plus"></i><a href="#">关注TA</a>&nbsp;
                                        <i class="icon-bookmark"></i><a href="?module=collect&action=add&mod=wiki&field=wikiid&value={$r[wikiid]}">添加收藏</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                  
                   {/get}
                   
             </div>
       
            <div class="pagination">
            	{$pages}
            </div>
            
            
   

    </div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="head"></div>
            <div class="body">
                <a class="button button-block" href="{url("?module=$module&action=create")}">创建词条</a>
                <a class="button button-block" href="{url("?module=$module&action=mine")}">我的词条</a>
            </div>
        </div>
    
    	<div class="mod">
        	<div class="head">开放分类浏览</div>
            <div class="body">
            	<strong>人物：</strong> 
                <a href="{url("index.php?module=wiki&action=tag&name=输入法")}">输入法</a> 
                <a href="{url("?module=wiki&action=tag&name=影星")}">影星</a>
                <a href="{url("?module=wiki&action=tag&name=作家")}">作家</a>
                <a href="{url("?module=wiki&action=tag&name=歌星")}">歌星</a>
                <a href="{url("?module=wiki&action=tag&name=动漫人物")}">动漫人物</a>
                <a href="#">...</a>
                <br/>
                <strong>文化：</strong> 
                <a href="{url("?module=wiki&action=tag&name=神话")}">神话</a> 
                <a href="{url("?module=wiki&action=tag&name=诗词")}">诗词</a>
                <a href="{url("?module=wiki&action=tag&name=成语")}">成语</a>
                <a href="{url("?module=wiki&action=tag&name=网络用语")}">网络用语</a>
                <a href="{url("?module=wiki&action=tag&name=考古")}">考古</a>
                <a href="#">...</a>
                <br/>
                <strong>技术：</strong> 
                <a href="{url("?module=wiki&action=tag&name=电脑病毒")}">电脑病毒</a> 
                <a href="{url("?module=wiki&action=tag&name=MP3")}">MP3</a>
                <a href="{url("?module=wiki&action=tag&name=CPU")}">CPU</a>
                <a href="{url("?module=wiki&action=tag&name=移动通信")}">移动通信</a>
                <a href="{url("?module=wiki&action=tag&name=土木工程")}">土木工程</a>
                <a href="#">...</a>
                <br/>
                <strong>历史：</strong> 
                <a href="{url("?module=wiki&action=tag&name=三国")}">三国</a> 
                <a href="{url("?module=wiki&action=tag&name=洋务运动")}">洋务运动</a>
                <a href="{url("?module=wiki&action=tag&name=南北朝")}">南北朝</a>
                <a href="{url("?module=wiki&action=tag&name=抗日战争")}">抗日战争</a>
                <a href="{url("?module=wiki&action=tag&name=侏罗纪")}">侏罗纪</a>
                <a href="#">...</a>
                <br/>
                <strong>艺术：</strong>     
                <a href="{url("?module=wiki&action=tag&name=建筑")}">建筑</a> 
                <a href="{url("?module=wiki&action=tag&name=雕塑")}">雕塑</a>
                <a href="{url("?module=wiki&action=tag&name=绘画")}">绘画</a>
                <a href="{url("?module=wiki&action=tag&name=音乐")}">音乐</a>
                <a href="{url("?module=wiki&action=tag&name=戏剧")}">戏剧</a>
                <a href="#">...</a>
                <br/>
                <strong>生活：</strong>     
                <a href="{url("?module=wiki&action=tag&name=烹饪")}">烹饪</a> 
                <a href="{url("?module=wiki&action=tag&name=美容")}">美容</a>
                <a href="{url("?module=wiki&action=tag&name=服饰")}">服饰</a>
                <a href="{url("?module=wiki&action=tag&name=游戏")}">游戏</a>
                <a href="{url("?module=wiki&action=tag&name=动漫")}">动漫</a>
                <a href="#">...</a>
                <br/>
                <strong>地理：</strong>     
                <a href="{url("?module=wiki&action=tag&name=河流")}">河流</a> 
                <a href="{url("?module=wiki&action=tag&name=山脉")}">山脉</a>
                <a href="{url("?module=wiki&action=tag&name=岛屿")}">岛屿</a>
                <a href="{url("?module=wiki&action=tag&name=地质")}">地质</a>
                <a href="{url("?module=wiki&action=tag&name=国家")}">国家</a>
                <a href="#">...</a>
                <br/>
                <strong>社会：</strong>     
                <a href="{url("?module=wiki&action=tag&name=企业")}">企业</a> 
                <a href="{url("?module=wiki&action=tag&name=法律")}">法律</a>
                <a href="{url("?module=wiki&action=tag&name=交通")}">交通</a>
                <a href="{url("?module=wiki&action=tag&name=民俗")}">民俗</a>
                <a href="{url("?module=wiki&action=tag&name=军事")}">军事</a>
                <a href="#">...</a>
                <br/>
                <strong>体育：</strong>     
                <a href="{url("?module=wiki&action=tag&name=足球")}">足球</a> 
                <a href="{url("?module=wiki&action=tag&name=篮球")}">篮球</a>
                <a href="{url("?module=wiki&action=tag&name=电子竞技")}">电子竞技</a>
                <a href="{url("?module=wiki&action=tag&name=极限运动")}">极限运动</a>
                <a href="{url("?module=wiki&action=tag&name=围棋")}">围棋</a>
                <a href="#">...</a>
                <br/>
                <strong>自然：</strong>     
                <a href="{url("?module=wiki&action=tag&name=细菌")}">细菌</a> 
                <a href="{url("?module=wiki&action=tag&name=恐龙")}">恐龙</a>
                <a href="{url("?module=wiki&action=tag&name=花卉")}">花卉</a>
                <a href="{url("?module=wiki&action=tag&name=天文")}">天文</a>
                <a href="{url("?module=wiki&action=tag&name=气象")}">气象</a>
                <a href="#">...</a>
                <br/>
                <strong>科学：</strong>     
                <a href="{url("?module=wiki&action=tag&name=数学")}">数学</a> 
                <a href="{url("?module=wiki&action=tag&name=物理")}">物理</a>
                <a href="{url("?module=wiki&action=tag&name=化学")}">化学</a>
                <a href="{url("?module=wiki&action=tag&name=医学")}">医学</a>
                <a href="{url("?module=wiki&action=tag&name=遗传学")}">遗传学</a>
                <a href="#">...</a>
                <br/>
                <strong>经济：</strong> 
                <a href="{url("?module=wiki&action=tag&name=股票")}">股票</a> 
                <a href="{url("?module=wiki&action=tag&name=基金")}">基金</a>
                <a href="{url("?module=wiki&action=tag&name=期货")}">期货</a>
                <a href="{url("?module=wiki&action=tag&name=银行")}">银行</a>
                <a href="{url("?module=wiki&action=tag&name=保险")}">保险</a>
                <a href="#">...</a>
            </div>
        </div>
    	
        <div class="mod">
            <div class="head">点击排行{$catname}</div> 
              <ul class="body">
            {get sql="SELECT * FROM `table_wiki` WHERE  status=99 ORDER BY hits DESC" rows="20" page="$page"}
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
            {/get}
             </ul> 
        </div>
        
        <div class="mod">
            <div class="head">热门标签</div>
            <div class="body">
              <!--{get sql="select tag,hits from table_keyword where `module` = 'wiki' order by listorder desc,hits desc" rows="50"}-->
                <a href="{url("?module=wiki&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
              <!--{/get}-->
              </div>
        </div>
          
    </div>
</div>


{template 'footer.html'}

